org.eclipse.vtp.desktop.editors.themes.mantis
Class MantisElementFrame
java.lang.Object
org.eclipse.vtp.desktop.editors.themes.mantis.MantisComponentFrame
org.eclipse.vtp.desktop.editors.themes.mantis.MantisElementFrame
- All Implemented Interfaces:
- java.beans.PropertyChangeListener, java.util.EventListener, UIComponentListener, ComponentFrame, ElementFrame, ThematicFrame
public class MantisElementFrame
- extends MantisComponentFrame
- implements ElementFrame
|
Method Summary |
void |
adjustPosition(int xoffset,
int yoffset)
|
void |
alignCenter(int orientation,
int xy)
|
void |
alignEdge(int edge,
int xy)
|
org.eclipse.swt.graphics.Rectangle |
getBounds()
|
org.eclipse.swt.graphics.Point |
getIncursionPoint(int x,
int y)
|
protected org.eclipse.swt.graphics.Point |
getIntersection(org.eclipse.swt.graphics.Point p1,
org.eclipse.swt.graphics.Point p2,
org.eclipse.swt.graphics.Point p3,
org.eclipse.swt.graphics.Point p4)
|
UIElement |
getUIElement()
|
void |
initializeGraphics(org.eclipse.swt.graphics.GC gc,
java.util.Map resourceMap)
|
void |
mouseDoubleClick(CommandListener commandListener,
int x,
int y,
int modifiers)
|
void |
mouseDown(CommandListener commandListener,
int x,
int y,
int modifiers)
|
void |
mouseMove(CommandListener commandListener,
int x,
int y,
int modifiers)
|
void |
mouseUp(CommandListener commandListener,
int x,
int y,
int modifiers)
|
void |
propertyChange(java.beans.PropertyChangeEvent event)
|
void |
renderFrame(org.eclipse.swt.graphics.GC gc,
int renderingPhase,
int options,
java.util.Map resourceMap)
|
void |
setSelected(boolean selected)
|
void |
setSize(int width,
int height)
|
boolean |
touchesComponent(int x,
int y)
|
boolean |
touchesElement(org.eclipse.swt.graphics.Rectangle rect)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MantisElementFrame
public MantisElementFrame(UIElement uiElement)
alignEdge
public void alignEdge(int edge,
int xy)
- Specified by:
alignEdge in interface ElementFrame
alignCenter
public void alignCenter(int orientation,
int xy)
- Specified by:
alignCenter in interface ElementFrame
getUIElement
public UIElement getUIElement()
- Specified by:
getUIElement in interface ElementFrame
setSize
public void setSize(int width,
int height)
- Specified by:
setSize in interface ElementFrame
adjustPosition
public void adjustPosition(int xoffset,
int yoffset)
- Specified by:
adjustPosition in interface ComponentFrame
getBounds
public org.eclipse.swt.graphics.Rectangle getBounds()
- Specified by:
getBounds in interface ComponentFrame
mouseDoubleClick
public void mouseDoubleClick(CommandListener commandListener,
int x,
int y,
int modifiers)
- Specified by:
mouseDoubleClick in interface ComponentFrame- Overrides:
mouseDoubleClick in class MantisComponentFrame
mouseDown
public void mouseDown(CommandListener commandListener,
int x,
int y,
int modifiers)
- Specified by:
mouseDown in interface ComponentFrame
mouseMove
public void mouseMove(CommandListener commandListener,
int x,
int y,
int modifiers)
- Specified by:
mouseMove in interface ComponentFrame
mouseUp
public void mouseUp(CommandListener commandListener,
int x,
int y,
int modifiers)
- Specified by:
mouseUp in interface ComponentFrame
renderFrame
public void renderFrame(org.eclipse.swt.graphics.GC gc,
int renderingPhase,
int options,
java.util.Map resourceMap)
- Specified by:
renderFrame in interface ThematicFrame- Overrides:
renderFrame in class MantisComponentFrame
setSelected
public void setSelected(boolean selected)
- Specified by:
setSelected in interface ComponentFrame
touchesComponent
public boolean touchesComponent(int x,
int y)
- Specified by:
touchesComponent in interface ComponentFrame
touchesElement
public boolean touchesElement(org.eclipse.swt.graphics.Rectangle rect)
- Specified by:
touchesElement in interface ElementFrame
getIncursionPoint
public org.eclipse.swt.graphics.Point getIncursionPoint(int x,
int y)
- Specified by:
getIncursionPoint in interface ElementFrame
getIntersection
protected org.eclipse.swt.graphics.Point getIntersection(org.eclipse.swt.graphics.Point p1,
org.eclipse.swt.graphics.Point p2,
org.eclipse.swt.graphics.Point p3,
org.eclipse.swt.graphics.Point p4)
initializeGraphics
public void initializeGraphics(org.eclipse.swt.graphics.GC gc,
java.util.Map resourceMap)
- Specified by:
initializeGraphics in interface ComponentFrame
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent event)
- Specified by:
propertyChange in interface java.beans.PropertyChangeListener- Overrides:
propertyChange in class MantisComponentFrame